﻿<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>创业者项目管理</title>
    <!--common-->
    <link href="/resources/src/css/admin.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
	<link rel="stylesheet" href="/resources/src/css/admin/main.css" />
	<link rel="stylesheet" href="/resources/src/css/admin/user-manage.css" />
</head>
<body>
  <article class="main">
			<div class="main-wrapper">
				<section class="content">
				<form id="myForm" action="/admin/project/deliveryList">
					<div class="container">
						<div class="con-body">
							<div class="toolbar clearfix">
								<!-- <div class="toolbar-left toolbar-one pull-left">
									<a href="#" id="checkout" class="pull-left">导出</a>
								</div> -->
								<div class="toolbar-right pull-left">
									<div class="input-icon">
										<input type="text" id="condition" placeholder="输入用户名或项目名"/>
										<i class="iconfont icon-sousuo" id="searchPro"></i>
									</div>
								</div>
							</div>
							<div class="user-table table-responsive">
								<table class="table">
									<thead>
										<tr>
											<th>项目名</th>
											<th>用户名</th>
											<th>创建时间</th>
											<th>BP文件</th>
											<th>手机</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody id="mytable">
										<c:forEach items="${pages.result }" var="pro">
										<tr data-userId="255">
											<td>${pro.name }</td>
											<td>${pro.contactsName }</td>
											<td>${pro.createTime }</td>
											<td><c:if test="${empty pro.bp  }">
                                       			无
	                                       	</c:if>
	                                       	<c:if test="${!empty pro.bp  }">
	                                       		<a href="${pro.bp }">下载</a>
	                                       	</c:if></td>
	                                       	<td>${pro.contactsPhone }</td>
	                                       	<td><a href="/admin/project/detail/${pro.id }" class="handle_a edit_user_m">查看</a></td>
										</tr>
										</c:forEach>
										<tr>
										<td colspan="6" style="border:0"><jsp:include page="/common/adminPage.jsp" /></td>
										</tr>
									</tbody>
								</table>		
							</div>
						</div>
					</div>
					</form>
				</section>
			</div>
		</article>
    
    <script src="/resources/src/js/jquery-1.9.1.min.js"></script>
    <script src="/resources/src/js/jquery.nicescroll.js"></script>
    <script src="/resources/src/js/moment.min.js"></script>
    <script src="/resources/src/js/daterangepicker.js"></script>
    <script src="/resources/src/js/main.js"></script>
    <script src="/resources/src/js/admin.js"></script>
     <script src="/resources/src/js/adminPage.js"></script>
    <script>
        $(function(){
            $('.org-data').width($(window).width()-230);
            $(".org-data").niceScroll({styler:"fb",cursorcolor:"#23a8f5", cursorwidth: '3', cursorborderradius: '0px', background: '#424f63', spacebarenabled:false, cursorborder: '0'});
        
            $("#searchPro").click(function(){
        		var condition = $("#condition").val();
        		
        		$.ajax({
        			type:"post",
        			url:"/admin/project/deliveryList",
        			data:{"condition":condition},
        			success:function(data){
        				$("#mytable").html(data);
        			}
        		});
        	})
        
        })
        $(window).resize(function(){    
            $('.org-data').width($(window).width()-230);
        });
    </script>
    
</body>
</html>